package com.yehuo.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yehuo.app.entity.Dict;
import org.apache.ibatis.annotations.Select;

public interface DictMapper  extends BaseMapper<Dict> {
    @Select("SELECT CASE when count(1) > 0 THEN 1 ELSE 0 END FROM d_dict d where d.`key` = 'auto_pay' and d.`value` = 1")
    boolean selectAutoPay();
}

